<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        console.log(2 == '2') //true,==可以隐式转换为数字
        console.log(2 === '2') //fales,===不仅值要一样，类型也要一样
    </script>
</body>
</html>